//
//  SpringBoardViewButton.h
//  SpringBoardView
//
//  Created by Kishikawa Katsumi on 10/01/24.
//  Copyright 2010 Kishikawa Katsumi. All rights reserved.
//

#import <UIKit/UIKit.h>

UIKIT_EXTERN NSString *const SpringBoardViewBeginEditingNotification;
NSString *const SpringBoardViewButtonLayoutChangingNotification;
NSString *const SpringBoardViewButtonLayoutChangedNotification;

@class SpringBoardViewController;
@class SpringBoardViewDeleteButton;

@interface SpringBoardViewButton : UIButton {
    SpringBoardViewController *controller;
	NSString *title;
	UIImage *iconImage;
	SpringBoardViewDeleteButton *deleteButton;
	BOOL isEditing;
	BOOL isWiggling;
	BOOL isDragging;
	CGRect fromRect;
}

@property (nonatomic, assign) SpringBoardViewController *controller;
@property (nonatomic, retain) NSString *title;
@property (nonatomic, retain) UIImage *iconImage;
@property (nonatomic, readonly) BOOL isDragging;
@property (nonatomic, setter=setEditing:) BOOL isEditing;

- (id)initWithTitle:(NSString *)aTitle iconImage:(UIImage *)image;

@end
